package com.RMP
{
    import flash.display.*;
    import flash.text.*;

    public class ToolTip extends Sprite
    {
        var fadeSpeed:Number;
        public var rShadow:MovieClip;
        public var inLightbox:Boolean;
        public var bg:MovieClip;
        var minus:Sprite;
        var btn:Sprite;
        var plus:Sprite;
        public var lShadow:MovieClip;
        var myRoot:MovieClip;
        public var mShadow:MovieClip;
        public var field:TextField;

        public function ToolTip(param1:MovieClip, param2:Number) : void
        {
            myRoot = param1;
            fadeSpeed = param2;
            field.autoSize = "left";
            return;
        }

        public function changeText(param1:String)
        {
            field.text = param1;
            bg.width = Math.round(field.width + 6);
            lShadow.x = 0;
            rShadow.x = Math.round(bg.x + bg.width - 13);
            mShadow.x = lShadow.x + 13;
            mShadow.width = Math.round(bg.width - 26);
            return;
        }

    }
}
